<?php
class mdl_ckey {
	const user_histroy = 'user_histroy';
	const user_setting = 'user_setting';
	const invite		= 'invite';
	const win_fenhong	= 'win_fenhong';
	const lose_pao		= 'lose_pao';

	static function getck($ck, $mid) {
		switch($ck) {
		case 'user_setting':
		case 'user_histroy':
		case 'invite':
			return "{$ck}.{$mid}";
			break;
		case 'win_fenhong':
		case 'lose_pao':
			$t = TODAY;
			return "{$ck}.{$mid}.{$t}";
			break;
		}
	}
}